<?php
include('../config.php');
include(PUNG_ROOT . '/admin/header.php');

$adminmenu = array(
LANG_006 => 'system.php',
LANG_013 => 'phpinfo.php'
);

include(PUNG_ROOT . '/admin/head.php');

$disk = explode('/system', $_SERVER['SCRIPT_FILENAME']);
$disk = $disk['0'];

$total = disk_total_space($disk);
$free = disk_free_space($disk);

$percent = round(($free / $total) * 100);
$zasedeno = 100 - $percent;
?>

<h3><?php print LANG_020; ?></h3>

<table width="100%">
<tr>
	<td width="150"><strong><?php print LANG_017; ?>:</strong></td>
	<td>PungCMS</td>
</tr>
<tr>
	<td><strong><?php print LANG_018; ?>:</strong></td>
	<td>
	<?php
	include(PUNG_ROOT . '/system/version.php');
	print $pungcms_version; 
	?>
	</td>
</tr>
<tr>
	<td><strong><?php print LANG_019; ?>:</strong></td>
	<td>CodePonPon &lt;admin@codeponpon.com&gt;</td>
</tr>
</table>

<h3><?php print LANG_012; ?></h3>

<table width="100%" cellspacing="0" cellpadding="0">
<tr>
	<td width="<?php print $zasedeno; ?>%" style="border: 1px solid black; 
	border-right: none; background-color:#0099FF; color: white; 
	text-align:center;"><?php print $zasedeno; ?>%</td>
	<td style="border: 1px solid black; color: black; text-align:center;">&nbsp;</td>
</tr>
</table>
<br />
<table width="100%">
<tr>
	<td width="150"><strong><?php print LANG_014; ?>:</strong></td>
	<td><?php print php_uname('s'); ?></td>
</tr>
<tr>
	<td><strong><?php print LANG_015; ?>:</strong></td>
	<td><?php print convert_bytes($total); ?></td>
</tr>
<tr>
	<td><strong><?php print LANG_016; ?>:</strong></td>
	<td><?php print convert_bytes($free); ?></td>
</tr>
</table>

<?php
include(PUNG_ROOT . '/admin/footer.php');
?>